package yb.ecp.fast.user.feign;


//import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(url = "http://opendata.baidu.com/api.php?resource_id=6006&oe=utf8", name = "ipFeignClient")
public interface IpFeignClient {

    @RequestMapping()
    Map getIpAttribution(@RequestParam("query") String query);
}
